export const getFileDir = (fileName: string) => {
  const arr = fileName.split('/');
  const dir = arr.slice(0, arr.length - 1).join('/');
  return dir;
};

export const getFileName = (fileName: string) => {
  const arr = fileName.split('/');
  return arr[arr.length - 1];
};
